package com.hxs.learn.entity.core;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldStrategy;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hxs.learn.common.entity.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

import java.util.Date;


/**
 * 
 * @author huxinsheng
 * @date 2018-04-24 15:32:13
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "sys_role")
@Alias(value = "SysRole")
public class SysRole implements BaseEntity{
	/**
	 * 编号
	 */
	@TableId(value = "id", type = IdType.INPUT)
	private String id ;
	/**
	 * 创建人
	 */
	@TableField(value = "creator", strategy = FieldStrategy.NOT_EMPTY)
	private String creator ;
	/**
	 * 角色描述
	 */
	@TableField(value = "description", strategy = FieldStrategy.NOT_EMPTY)
	private String description ;
	/**
	 * 角色名称
	 */
	@TableField(value = "name", strategy = FieldStrategy.NOT_EMPTY)
	private String name ;
	/**
	 * 角色标识
	 */
	@TableField(value = "sign", strategy = FieldStrategy.NOT_EMPTY)
	private String sign ;
	/**
	 * 更新人
	 */
	@TableField(value = "updateBy", strategy = FieldStrategy.NOT_EMPTY)
	private String updateBy ;
	/**
	 * 创建时间
	 */
	@TableField(value = "createTime")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date createTime ;
	/**
	 * 更新时间
	 */
	@TableField(value = "updateTime")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date updateTime ;
}
